package org.example.shop.entity;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class User {
    private Integer id;
    private String account;
    private String password;
    private String email;
    private String telphone;
    private Integer points;
    private BigDecimal money;
    private String avatar;
    private LocalDateTime regTime;
    private String status;
    private String role; // 新增字段，用于区分管理员和普通用户

    // 无参构造函数
    public User() {}

    // 带参数的构造函数
    public User(String account, String password, String role) {
        this.account = account;
        this.password = password;
        this.role = role;
    }
}